//
//  AdsCell.m
//  PriceOnline
//
//  Created by Le Anh Tai on 12/2/14.
//  Copyright (c) 2014 Le Anh Tai. All rights reserved.
//

#import "AdsCell.h"

@implementation AdsCell

- (void)setAdsView:(UIView *)adsView
{
    [_adsView removeFromSuperview];
    
    _adsView = adsView;
    [_subView addSubview:_adsView];
    
    [self layoutSubviews];
    
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    _adsView.frame = RECT(0, (self.height - _adsView.height)/2, _adsView.width, _adsView.height);
}

@end
